package chapter2.section1;

/**
 * 练习程序，计算长方形的面积和周长，并打印输出。
 *
 * @author 张玮婷 20245080902061
 */
public class ComputeRect {
    public static void main(String[] args) {
        int height = 20, width = 61;
        double area = height * width;
        double perimeter = 2 * (height + width);
        System.out.println(area);
        System.out.println(perimeter);
    }
}
